<html xmlns="http://www.w3.org/1999/xhtml"   
      xmlns:composite="http://java.sun.com/jsf/composite"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:p="http://primefaces.org/ui">
 
	  <composite:interface>
			<composite:attribute name="title" />
	  </composite:interface>
 
	  <composite:implementation>
	  <p:panel id="activityStreamPanel">
			<h:form id="asForm">
	 			<p:inputText id="newUserActivityMessage" value="#{activityBean.newUserActionMessage}"></p:inputText>
	 			<p:commandButton value="Hinzufügen" actionListener="#{activityBean.newUserActivity}" icon="ui-icon-disk" ajax="false"/>
			
				<p:dataTable id="asList" value="#{activityBean.activities}" var="activity" >
					<p:column>
						<p>#{activity.timestampString}</p><br/>
						<a href="#{activity.htmlTargetUrl}">#{activity.htmlDescription}</a>					
					</p:column>
					<p:column>
						<h:commandButton value="Delete" actionListener="#{activityBean.removeActivity(activity)}"/>
					</p:column>
				</p:dataTable>
			</h:form>
	  </p:panel>
	  </composite:implementation>
</html>